export default {
  path: '/manager',
  name: 'manager',
  icon: 'user',
  routes: [
    {
      path: '/manager/userManager', // umi的路由规则，嵌套地址不能跳过,/userManager 不行
      name: 'userManager',
      icon: 'table',
      routes: [
        {
          path: '/',
          redirect: '/manager/userManager/find',
        },
        {
          path: '/manager/userManager/find',
          name: 'userList',
          icon: 'table',
          component: './admin/UserManager',
        },
        {
          path: '/manager/userManager/manage',
          name: 'manageUser',
          icon: 'table',
          component: './admin/UserManager/manageUser',
        },
      ],
    },
    {
      path: '/manager/roleManager',
      name: 'roleManager',
      icon: 'user',
      routes: [
        {
          path: '/manager/roleManager/find',
          name: 'roleList',
          icon: 'table',
          component: './admin/RoleManager',
        },
        {
          path: '/manager/roleManager/create',
          name: 'roleCreate',
          icon: 'table',
          component: './admin/RoleManager/Create',
        },
      ],
    },
  ],
};
